package com.hd.pzhwlxt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
@create: 2022-09-21 9:01
@author: 怀念天空
@Description: 
*/

/**
    * 物资信息基本表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "material_tbl")
public class Material {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 物资类型
     */
    @TableField(value = "`type`")
    private String type;

    /**
     * 名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 条码编号
     */
    @TableField(value = "bar_code")
    private String barCode;

    /**
     * 型号规格
     */
    @TableField(value = "material_space")
    private String materialSpace;

    @TableField(value = "stock")
    private Integer stock;

    /**
     * 单位
     */
    @TableField(value = "units")
    private String units;

    /**
     * 适用车型
     */
    @TableField(value = "type_name")
    private String typeName;

    /**
     * 包装类型
     */
    @TableField(value = "packing_type")
    private String packingType;

    /**
     * 堆放占用空间
     */
    @TableField(value = "pile_up_space")
    private Double pileUpSpace;

    @TableField(exist = false)
    private Materialprice materialprice;
}